/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GlobalObservingSystem.Mundo.RecepcionDatos;

import java.net.Socket;

/**
 *
 * @author js.rojas
 */
public class ThreadProcesarTrama extends Thread
{
    private ManejadorTrama mt;
    private Socket s;

    public ThreadProcesarTrama( ManejadorTrama mt, Socket s )
    {
        this.mt = mt;
        this.s = s;
    }

    public void run()
    {
        byte[] b = mt.recibirTrama(s);
        mt.procesarTrama(b);
    }
}

